﻿//*** Guidance generated code ***//
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;

using ProjectBase.Core;

namespace Survey.Business
{
    /// <summary>
    /// Provides two collections to be bounded as:
    /// 1) a list of existing ids
    /// 2) a collection of IDs to be removed.
    /// </summary>
    public class ListItemsBindingObject
    {
        #region member

        private IList<int> _existingIDs;
        private IList<int> _removeIDs;

        #endregion member

        /// <summary>
        /// Could be bounded to all IDs coming in IValueProvider
        /// (FORM, excel column)
        /// named: as "{prefix.}ExistingIDs"
        /// </summary>
        public virtual IList<int> ExistingIDs
        {
            get { return _existingIDs ?? (_existingIDs = new List<int>()); }
            set { _existingIDs = value; }
        }

        /// <summary>
        /// Could be bounded to all IDs coming in IValueProvider
        /// (FORM, excel column)
        /// named: as "{prefix.}RemoveIDs"
        /// </summary>
        public virtual IList<int> RemoveIDs
        {
            get { return _removeIDs ?? (_removeIDs = new List<int>()); }
            set { _removeIDs = value; }
        }
    }
}